package com.TIEmulator;

public class ModifierKey
{
  private static final int LOCKED = 4;
  private static final int PRESSED = 1;
  private static final int RELEASED = 2;
  private static final int UNPRESSED = 0;
  private static final int USED = 3;
  private int mState = 0;

  public void adjustAfterKeypress()
  {
    switch (this.mState)
    {
    default:
    case 1:
    case 2:
    }
    while (true)
    {
      return;
      this.mState = 3;
      continue;
      this.mState = 0;
    }
  }

  public boolean isActive()
  {
    if (this.mState != 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public void onPress()
  {
    switch (this.mState)
    {
    default:
    case 1:
    case 3:
    case 2:
    case 4:
    }
    for (this.mState = 1; ; this.mState = 0)
      while (true)
      {
        return;
        this.mState = 4;
      }
  }

  public void onRelease()
  {
    switch (this.mState)
    {
    case 2:
    default:
    case 3:
    case 1:
    }
    while (true)
    {
      return;
      this.mState = 0;
      continue;
      this.mState = 2;
    }
  }
}
